package com.donn.securitycontrolplatform.equipment.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhenglx
 * @since 2022-06-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TEquipment对象", description="")
public class TEquipment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "设备编号")
    private String equipmentNum;

    @ApiModelProperty(value = "标签id")
    private String tagId;

    @ApiModelProperty(value = "描述")
    private String remark;

    @ApiModelProperty(value = "设备状态")
    private String status;

    @ApiModelProperty(value = "操作人")
    private String operator;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime operateTime;

    @ApiModelProperty(value = "设备组id")
    private String groupId;

//    @TableField(fill = FieldFill.INSERT)
//    @ApiModelProperty(value = "入库时间")
//    private LocalDateTime time;
//
//    @TableField(fill = FieldFill.UPDATE)
//    @ApiModelProperty(value = "出库时间")
//    private LocalDateTime updateTime;
}
